import pytest
from common import log_set
from common import send_mail
import os
if __name__ == '__main__':
    log_set()
    pytest.main(['-s','test_wdds.py','--alluredir=./报告数据','--clean-alluredir'])
    os.system("allure generate ./报告数据 -o ./测试报告 -clean")
    send_mail(['weidudianshanglog521.txt','./测试报告/index.html'])
